﻿#ifndef SEARCHBOX_H
#define SEARCHBOX_H

#include "head/g_pch.h"
#include "m_fhs.h"

#define PRE_SEARCH "search"
#define BAIDU_PREFIX "https://www.baidu.com/s?wd="

namespace Ui {
class Searchbox;
}

class Searchbox : public QDialog
{
    Q_OBJECT

public:
    explicit Searchbox(QWidget *parent = 0);
    ~Searchbox();

    void awake();

private slots:
    void on_keyword_returnPressed();

private:
    Ui::Searchbox *ui;

    QString prefix;
    QMap<QString,QString> traitMap;
};

#endif // SEARCHBOX_H
